package com.code1031.interfacedemo;

public class TestDemo {
    public static void main(String[] args) {
        Dog dog1 = new Dog("大狗", 1);
        Frog frog1 = new Frog("小青蛙", 2);
        Rabbit rabbit = new Rabbit("小兔子", 3);

//        dog1.eat();
//        frog1.eat();
//
//        dog1.swim();
    }
}
